﻿CREATE TRIGGER Roles_Tracking_Delete
ON [dbo].[Roles] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.Roles_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.Roles_Tracking s JOIN DELETED i
    ON s.RoleID = i.RoleID
END














